package com.i2863.receiptinterface.util;

/**
 * @author xuweiwei
 * @date 2018/6/12
 */
public class PhoneUtil {
    public static String hide(String phone){
        if(phone !=null && phone.length()==11){
            return phone.substring(0,3)+"****"+phone.substring(7);
        }
        return phone;
    }
    public static void main(String[] args) {
        System.out.println(hide("13980974244"));
    }
}
